home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
cuj9303.zip
/
1103102B
< prev
next >
Wrap
Text File
|
1993-06-21
|
448b
|
25 lines
// tdate8.cpp:
#include <iostream.h>
#include "date8.h"
main()
{
Date today, d2;
cout << "Today's date is " << today << endl;
cout << "Enter another date: ";
cin >> d2;
cout << "today - d2 = " << today - d2 << endl;
cout << "d2 - today = " << d2 - today << endl;
return 0;
}
/* OUTPUT
Today's date is 12/12/1992
Enter another date: 1/1/1970
today - d2 = 11/11/22
d2 - today = -11/-11/-22
*/